laravel get db connection info

44

if(DB::connection()->getDatabaseName())
   {
     echo "conncted sucessfully to database ".DB::connection()->getDatabaseName();
   }

Comments

Submit
0 Comments